You want to use minimum number of instructions, so you should write a program for help.
您想使用最少的指令,所以你应该写一个程序的帮助。
Output one line for each test case, indicating the minimum number of instructions needed.
输出一行为每个测试案例,表明所需要的最低数量的指示。
In general, the greater the number of instructions set, the larger the propagation delay is within the CPU.
总的来说,指令集中的指令数越多,CPU中的传播延迟越大。 峚。
That is, it's at most the length of the actual number of instructions.
也就是,它至多会执行,和实际指令数一样多的指令。
Remember last time, I said that there's different kinds of complexity in our code, and I suggested for simple branching programs, the amount of time it takes to run that program is, in essence, bounded by the number of instructions, because you only execute each instruction at most once.
但是这里有个很重要的点,记得上节课,我提过在我们的代码中,有不同种类的复杂度,而且我还说了对于简单的分支程序,运行这种程序需要的总体时间,大体上,是和指令的数目相关的,因为每个指令只会被执行最多一次。
应用推荐